Builder
class Builder
Content copied to clipboard
Constructors
Functions
accessToken
Link copied to clipboard
open fun accessToken(@NonNull() accessToken: String): ResourceOptions.Builder
Content copied to clipboard
assetPath
Link copied to clipboard
open fun assetPath(@Nullable() assetPath: String): ResourceOptions.Builder
Content copied to clipboard
baseURL
Link copied to clipboard
build
Link copied to clipboard
dataPath
Link copied to clipboard
The path to the map data folder.The implementation will use this folder for storing offline style packages and temporary data.The application must have sufficient permissions to create files within the provided directory.If a dataPath is not provided, the default location will be used (the application data path definedin the `Mapbox Common SystemInformation API`).
tileStore
Link copied to clipboard
open fun tileStore(@Nullable() tileStore: TileStore): ResourceOptions.Builder
Content copied to clipboard
tileStoreUsageMode
Link copied to clipboard
open fun tileStoreUsageMode(@NonNull() tileStoreUsageMode: TileStoreUsageMode): ResourceOptions.Builder
Content copied to clipboard
Extensions
applyDefaultParams
Link copied to clipboard
fun ResourceOptions.Builder.applyDefaultParams(context: Context): ResourceOptions.Builder
Content copied to clipboard
Get a default ResourceOptions.Builder with Mapbox pre-defined options, and with the access token taken from the Android resources(if available).